package com.ssy.lingxi.pay.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 授信外部审核记录表
 * @author 伍将
 * @date 2020/8/18
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "pay_credit_outer_verify_record",
        indexes = {@Index(name = "pay_credit_outer_verify_record_credit_id_idx", columnList = "creditId"),
                @Index(name = "pay_credit_outer_verify_record_apply_id_idx", columnList = "applyId"),
                @Index(name = "pay_credit_outer_verify_record_member_id_idx", columnList = "memberId"),
                @Index(name = "pay_credit_outer_verify_record_role_id_idx", columnList = "roleId")})
public class CreditOuterVerifyRecordDO implements Serializable {
    private static final long serialVersionUID = 3541253812904936717L;

    /**
     * 审核记录id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "credit_outer_verify_record_seq")
    @SequenceGenerator(sequenceName = "pay_credit_outer_verify_record_seq", name = "credit_outer_verify_record_seq", allocationSize = 1)
    private Long id;

    /**
     * 授信id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long creditId;

    /**
     * 授信申请id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long applyId;

    /**
     * 用户id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long userId;
    /**
     * 会员id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long memberId;

    /**
     * 角色id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long roleId;

    /**
     * 角色名称
     */
    @Column(columnDefinition = "varchar(100)", nullable = false)
    private String roleName;

    /**
     * 状态 0或Null-所有 1-待提交 2-待确认 3-接受申请 4-不接受申请
     */
    @Column(columnDefinition = "int", nullable = false)
    private Integer status;

    /**
     * 操作
     */
    @Column(columnDefinition = "varchar(100)", nullable = false)
    private String operate;

    /**
     * 操作时间
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long operateTime;

    /**
     * 审核意见
     */
    @Column(columnDefinition = "varchar(120)")
    private String opinion;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreditId() {
        return creditId;
    }

    public void setCreditId(Long creditId) {
        this.creditId = creditId;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    public Long getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Long operateTime) {
        this.operateTime = operateTime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }
}
